/**
 * Created by Administrator on 2016/8/1.
 */
swan_pc
    .factory("updateMessageById",function($resource){
        return $resource("api/messages/:id",{mId:"@mId"},{
            "update":{
                method:"PUT"
            }
        })
    })
    .factory("messageManage",function($resource){
        return $resource("api/messages",{
            "save":{
                method:"POST"
            }
        })
    })
    .factory("messageManageById",function($resource){
        return $resource("api/messages/:id",{id:"@id"},{
            "get":{
                method:"GET",
                //isArray:false,
                isArray:"false"
            },
            "query":{
                method:"GET",
                isArray:false
            },
            "delete":{
                method:"DELETE"
            },
            "update":{
                method:"PUT"
            }
        })
    })
    .factory("newMessageManage",function($resource){
        return $resource("api/notifications",{
            "query":{
                method:"GET"
            }
        })
    })
    .factory("replyMessageManage",function($resource){
        return $resource("api/notifications/:id/reply",{id:"@id"},{
            "save":{
                method:"PUT"
            }
        })
    })
